package com.stream;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class 终止操作_收集 {
	public static void main(String[] args) {
		List<Student> list1 = Arrays.asList(new Student("test1",12),new Student("test3",16),new Student("test4",9),new Student("test2",8));
		list1 = list1.stream().collect(Collectors.toList());
		System.out.println(list1);
	}
}
